package RadianceM.DistributionSystem.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

@Data
@AllArgsConstructor
@NoArgsConstructor
@ToString
@Schema(
		name = "DictionaryType",
		title = "数据字典字段",
		description = "系统中官方规范取值的类型"
)
@TableName(value = "dictionary_type")
public class DictionaryType {

	@Schema(title = "数据字典字段id")
	@TableId(value = "dictionary_type_id",type = IdType.NONE)
	private Long id;

	@Schema(description = "字段所属高校对应id，当本字段为空时则作为所有高校通用字段名称")
	@TableField(value = "college_id")
	private Long collegeId;

	@Schema(title = "字段名称", description = "取值字段的名称")
	@TableField(value = "dictionary_type")
	private String type;

	@Schema(title = "字段含义", description = "用于声明字段的含义与作用、字段相关的其他信息等")
	@TableField(value = "dictionary_type_intro")
	private String intro;
}
